# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-pymysql
_pyname=PyMySQL
pkgver=0.10.0
pkgrel=0
pkgdesc="Pure Python MySQL Client"
url="https://pypi.python.org/pypi/PyMySQL"
arch="noarch"
license="MIT"
options="!check" #require mysql for tests
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-pymysql" # Backwards  compatibility
provides="py-pymysql=$pkgver-r$pkgrel" # Backwards  compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="e1186c4beea31cb602a3d2297a28313c0bf4e361a04f7402b76a70feea1d24bf305a4f9ea637be250974983586cb49d82946ab478b531bbb2ca7fe370424e7fc  py3-pymysql-0.10.0.tar.gz"
